//
//  INEPerson.m
//  test_oc
//
//  Created by fangyuan ding on 2021/6/1.
//

#import "INEPerson.h"

@implementation INEPerson

- (instancetype)initWithAge:(NSInteger)age name:(NSString *)name {

    if (self = [super init]) {
        self.age = age;
        self.name = name;
    }

    return self;
}

- (instancetype)initWithAge1:(NSInteger)age name1:(NSString *)name {

    if (self = [super init]) {
        self.age = age;
        self.name = name;
    }

    return self;
}

+ (instancetype)personWithAge:(NSInteger)age name:(NSString *)name {
    
    return [[self alloc] initWithAge1:age name1:name];
}

- (void)run {
    
    NSLog(@"%s, %d, %@", __func__, self.age, self.name);
}

+ (void)run {
    
    NSLog(@"%s", __func__);
}

- (void)eat:(NSString *)food other:(NSString *)other {
    
    NSLog(@"%s, %d, %@, %@, %@", __func__, self.age, self.name, food, other);
}

+ (void)eat:(NSString *)food other:(NSString *)other {
    
    NSLog(@"%s, %@, %@", __func__, food, other);
}

@end
